package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yupi.springbootinit.listener.ExcelListener;
import com.yupi.springbootinit.model.dto.chart.ChartQueryRequest;
import com.yupi.springbootinit.model.entity.Chart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
* @author 38034
* @description 针对表【chart(图表信息表)】的数据库操作Service
* @createDate 2024-09-21 16:19:49
*/
public interface ChartService extends IService<Chart> {

    QueryWrapper<Chart> getQueryWrapper(ChartQueryRequest chartQueryRequest);

    void createDefineChartTable(Long chartId, ExcelListener excelListener);

    void insertDefineData(Long chartId, ExcelListener excelListener);

    List<Map<String, Object>> getChartDataById(long id);

    void sycnGenChartByAi(Chart chart, File tempFile);

    void handleChartUpdate(long chartId, String execMessage, File file, Long userId);
}
